package com.cqs.learning.spring.cloud.api.gateway;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.cloud.client.SpringCloudApplication;
import org.springframework.cloud.netflix.zuul.EnableZuulProxy;

/**
 * @author lixw
 * @date created in 23:14 2020/4/9
 */
@EnableZuulProxy
@SpringCloudApplication
public class GateWayApplication extends SpringBootServletInitializer {

    public static void main(String[] args) {
        try {
            SpringApplication application = new SpringApplication(GateWayApplication.class);
            application.run(args);
        } catch (Throwable e) {
            e.printStackTrace();
        }
    }
}

